#include <iostream>  
#include <string>  
class Student {  
private:  
    std::string reg_num;
    std::string name;
    float math_score;
    float english_score;
    float computer_score;
public:
    Student stu();  
    float sum() const {  
        return math_score + english_score + computer_score;  
    }  
    float average() const {  
        return sum() / 3.0f;  
    }  
    void print() const {  
        std::cout << "注册号: " << reg_num << "\n";  
        std::cout << "姓名: " << name << "\n";  
        std::cout << "数学成绩: " << math_score << "\n";  
        std::cout << "英语成绩: " << english_score << "\n";  
        std::cout << "计算机成绩: " << computer_score << "\n";  
    }  
    std::string get_reg_num() const {  
        return reg_num;  
    }  
    void set_stu_inf(std::string reg_num_,std::string name_,  
                     double math_score_, double english_score_, double computer_score_) {  
        reg_num = reg_num_;  
        name = name_;  
        math_score = math_score_;  
        english_score = english_score_;  
        computer_score = computer_score_;  
    }  
};  
int main() {  
    Student stu;  
    stu.set_stu_inf("20230001", "张三", 85.5, 90.0, 78.0);  
    std::cout << "学生信息:\n";  
    stu.print();  
    std::cout << "总成绩: " << stu.sum() << "\n";  
    std::cout << "平均成绩: " << stu.average() << "\n";  
    std::cout << "注册号: " << stu.get_reg_num() << "\n";     
    return 0;  
}